If all folders were removed, after a session restart the default folders
would have been recreated again, effectively preventing users from
using the app grid without folders.
Avoid this problem by only creating the default folders if the
folder-children setting has never been modified before.
Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8713
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4047>
(cherry picked from commit
889c1a444fcfd0588716528b8ee7dd858a610694)
}
_ensureDefaultFolders() {
- if (this._folderSettings.get_strv('folder-children').length > 0)
+ if (this._folderSettings.get_user_value('folder-children') !== null)
return;
const appSys = Shell.AppSystem.get_default();